package com.dingwen.treasure.open.api.baidu.map.config;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 百度地图配置
 *
 * @author dingwen
 * @date 2022/12/29
 */
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "treasure.baidu.map")
@RefreshScope
@Getter
@Setter
@Slf4j
public class BaiduMapConfig {

    /**
     * ak
     */
    private String ak = "d5zIu41iuXSZWxcqDqWxCPBVxSh9x2yL";

    /**
     * 数据类型
     */
    private String dataType = "all";


    /**
     * 行政区code： 默认昆明市五华区
     */
    private String districtId = "530102";

    /**
     * 天气查询
     */
    private String weatherQueryUrl = "https://api.map.baidu.com/weather/v1/";

}
